package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * TbKKkeyId entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Embeddable
public class TbKKkeyId implements java.io.Serializable {

	// Fields

	private String kkId;
	private String KId;

	// Constructors

	/** default constructor */
	public TbKKkeyId() {
	}

	/** full constructor */
	public TbKKkeyId(String kkId, String KId) {
		this.kkId = kkId;
		this.KId = KId;
	}

	// Property accessors

	@Column(name = "KK_ID", nullable = false, length = 10)
	public String getKkId() {
		return this.kkId;
	}

	public void setKkId(String kkId) {
		this.kkId = kkId;
	}

	@Column(name = "K_ID", nullable = false, length = 10)
	public String getKId() {
		return this.KId;
	}

	public void setKId(String KId) {
		this.KId = KId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TbKKkeyId))
			return false;
		TbKKkeyId castOther = (TbKKkeyId) other;

		return ((this.getKkId() == castOther.getKkId()) || (this.getKkId() != null
				&& castOther.getKkId() != null && this.getKkId().equals(
				castOther.getKkId())))
				&& ((this.getKId() == castOther.getKId()) || (this.getKId() != null
						&& castOther.getKId() != null && this.getKId().equals(
						castOther.getKId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKkId() == null ? 0 : this.getKkId().hashCode());
		result = 37 * result
				+ (getKId() == null ? 0 : this.getKId().hashCode());
		return result;
	}

}